import request from '@/utils/request'

// 查询提现管理列表
export function listManage(query) {
  return request({
    url: '/withdraw/manage/list',
    method: 'get',
    params: query
  })
}
// 代理提现
export function listDlManage(query) {
  return request({
    url: '/agency/withdraw/list',
    method: 'get',
    params: query
  })
}

export function listTjrManage(query) {
  return request({
    url: '/withdraw/recommendWithdraw/list',
    method: 'get',
    params: query
  })
}

// 查询提现管理详细
export function getManage(id) {
  return request({
    url: '/withdraw/manage/' + id,
    method: 'get'
  })
}

// 新增提现管理
export function addManage(data) {
  return request({
    url: '/withdraw/manage',
    method: 'post',
    data: data
  })
}

// 修改提现管理
export function updateManage(data) {
  return request({
    url: '/withdraw/manage',
    method: 'put',
    data: data
  })
}

// 删除提现管理
export function delManage(id) {
  return request({
    url: '/withdraw/manage/' + id,
    method: 'put'
  })
}

export function delTjrManage(id) {
  return request({
    url: '/withdraw/recommendWithdraw/' + id,
    method: 'put'
  })
}

export function delDlManage(id) {
  return request({
    url: '/agency/withdraw/' + id,
    method: 'put'
  })
}
